USE [aircond]
GO

/****** Object:  Table [dbo].[ROOM_AUD]    Script Date: 03/15/2013 00:04:01 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[ROOM_AUD](
	[ROOM_ID] [numeric](19, 0) NOT NULL,
	[REV] [int] NOT NULL,
	[REVTYPE] [smallint] NULL,
	[updateDate] [datetime] NULL,
	[updateUser] [varchar](255) NULL,
	[description] [varchar](255) NULL,
	[roomName] [varchar](255) NULL,
	[roomNo] [int] NULL,
	[roomType] [varchar](255) NULL,
	[status] [varchar](255) NULL,
	[FLOOR_ID] [numeric](19, 0) NULL,
PRIMARY KEY CLUSTERED 
(
	[ROOM_ID] ASC,
	[REV] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[ROOM_AUD]  WITH CHECK ADD  CONSTRAINT [FK2464C12CBABE8053] FOREIGN KEY([REV])
REFERENCES [dbo].[AUD_REVISION] ([id])
GO

ALTER TABLE [dbo].[ROOM_AUD] CHECK CONSTRAINT [FK2464C12CBABE8053]
GO

